package com.gxy.learn.repository;

import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Description(这里用一句话描述这个方法的作用)
 * author: Gao xueyong
 * Create at: 2022/3/7 下午6:57
 */
public class Tesss {
    private static final Logger log = LoggerFactory.getLogger(Tesss.class);

    public static void main(String[] args) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserName("小明");
        userInfo.setData(new DataInfo("看电影"));
        String hobby = userInfo.getData().getHobby();
        log.info("userInfo = {}", JSONObject.toJSON(userInfo));



    }
}
